#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QLabel>
MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);

    QStatusBar* staBar = this->statusBar();
    this->setStatusBar(staBar);
    QLabel* l1 = new QLabel("提示消息1");
    QLabel* l2 = new QLabel("提示消息2");
    staBar->addWidget(l1);
    staBar->addPermanentWidget(l2);
    //staBar->showMessage("这是一个消息",3000);
}

MainWindow::~MainWindow()
{
    delete ui;
}

